import request from '@/utils/request'

// 查询采购订单列表
export function listArriveBill(query) {
  return request({
    url: '/material/arriveBill/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单详细
export function getArriveBill(arriveBillNo) {
  return request({
    url: '/material/arriveBill/' + arriveBillNo,
    method: 'get'
  })
}

// 新增采购订单
export function addArriveBill(data) {
  return request({
    url: '/material/arriveBill',
    method: 'post',
    data: data
  })
}

// 修改采购订单
export function updateArriveBill(data) {
  return request({
    url: '/material/arriveBill',
    method: 'put',
    data: data
  })
}

// 删除采购订单
export function delArriveBill(arriveBillNo) {
  return request({
    url: '/material/arriveBill/' + arriveBillNo,
    method: 'delete'
  })
}

// 导出采购订单
export function exportArriveBill(query) {
  return request({
    url: '/material/arriveBill/export',
    method: 'get',
    params: query
  })
}